<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<!-- saved from url=(0041)http://v3.bootcss.com/examples/dashboard/ -->
<html lang="zh-CN"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="http://v3.bootcss.com/favicon.ico">

    <title>Dashboard Template for Bootstrap</title>

    <!-- Bootstrap core CSS -->
    <link href="/study/Public/news/bootstrap.min.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="/study/Public/news/dashboard.css" rel="stylesheet">

    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
    <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
    <script src="/study/Public/news/ie-emulation-modes-warning.js"></script>

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->


    


<meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="author" content="13级中职升本">
    <link rel="shortcut icon" href="/study/Public/assets/ico/favicon.html">
    <link href="/study/Public/assets/css/bootstrap.css" rel="stylesheet">
    <link href="/study/Public/assets/css/theme.css" rel="stylesheet">
    <link href="/study/Public/assets/css/font-awesome.min.css" rel="stylesheet">
    <link href="/study/Public/assets/css/alertify.css" rel="stylesheet">
    <link rel="Favicon Icon" href="/study/Public/favicon.ico">
    <link href="http://fonts.useso.com/css?family=Open+Sans:400,700" rel="stylesheet" type="text/css">





</head>

<body>

<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="http://v3.bootcss.com/examples/dashboard/#">Project name</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav navbar-right">
                <li><a href="#"></a></li>
                <li><a href="#"></a></li>
                <li><a href="#"></a></li>
                <li><a href="<?php echo U('Login/logout');?>">注销</a></li>
            </ul>
            <form class="navbar-form navbar-right">
                <input type="text" class="form-control" placeholder="Search...">
            </form>
        </div>
    </div>
</nav>

<div class="container-fluid">
    <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
            <ul class="nav nav-sidebar">
                <li class="active"><a href="<?php echo U('Index/users');?>">用户管理 <span class="sr-only">(current)</span></a></li>
                <li><a href="<?php echo U('Index/groups');?>">社团管理</a></li>
                <li><a href="<?php echo U('Index/practices');?>">社团活动管理</a></li>
                <li><a href="<?php echo U('Index/news');?>">最新动态管理</a></li>
                <!-- <li><a href="<?php echo U('Index/mimas');?>">修改密码</a></li> -->
            </ul>
            <!-- <ul class="nav nav-sidebar">
                <li><a href="">Nav item</a></li>
                <li><a href="">Nav item again</a></li>
                <li><a href="">One more nav</a></li>
                <li><a href="">Another nav item</a></li>
                <li><a href="">More navigation</a></li>
            </ul>
            <ul class="nav nav-sidebar">
                <li><a href="">Nav item again</a></li>
                <li><a href="">One more nav</a></li>
                <li><a href="">Another nav item</a></li>
            </ul> -->
        </div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
          <h2 class="heading">
              用户管理
          </h2>
       <!-- /row-fluid -->

        
<!--此处往下为代码改写部分-->
        <div class="row-fluid">
          <div class="widget widget-padding span12">
            <div class="widget-header">
              <i class="icon-group"></i>

              <h5>用户列表</h5>
              <div class="widget-buttons">
                  <a href="#" data-title="Add User" data-toggle="modal" data-target="#example_modal"><i class="icon-plus"></i></a>
                  <a href="add"><i class="icon-user"></i> <span>添加用户</span></a>
                  <a href="#" data-title="Collapse" data-collapsed="false" class="collapse"><i class="icon-chevron-up"></i></a>
              </div>
            </div>  
            <div class="widget-body">
              <table id="users" class="table table-striped table-bordered dataTable">
                <thead>
                  <tr>
        <td>用户名</td>

        <td>学号</td>

        <td>姓名</td>

        <td>电话</td>

        <td>邮箱</td>

        <td>个人头像</td>

        <td>注册时间</td>
        <td>操作</td>
                  </tr>
				  </thead>
				  <tbody>
<?php if(is_array($users)): $i = 0; $__LIST__ = $users;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>

        <td><?php echo ($vo["username"]); ?></td>

        <td><?php echo ($vo["stunum"]); ?></td>

        <td><?php echo ($vo["realname"]); ?></td>

        <td><?php echo ($vo["tele"]); ?></td>

        <td><?php echo ($vo["email"]); ?></td>

        <td><img src="/study/Public/Uploads/photo/<?php echo ($vo["photo"]); ?>" width="100" height="100"></td>

        <td><?php echo (substr($vo["regtime"],0,10)); ?></td>

     <td>
                 <div class="btn-group">
                        <a class="btn btn-small dropdown-toggle" data-toggle="dropdown" href="#">
                        Action
                          <span class="caret"></span>
                        </a>
                        <ul class="dropdown-menu pull-right">
                          <li><a href="updateUserInfo?id=<?php echo ($vo["id"]); ?>"><i class="icon-edit"></i>修改</a></li>
                          <li><a href="del?id=<?php echo ($vo["id"]); ?>"><i class="icon-trash"></i>删除</a></li>
						  </ul>
                      </div>
    </td>
	</tr><?php endforeach; endif; else: echo "" ;endif; ?>
                 
                </tbody>
              </table>
            </div> <!-- /widget-body -->
          </div> <!-- /widget -->
        </div> <!-- /row-fluid -->

      </div>
      <!-- /Main window -->

    </div><!--/.fluid-container-->
    </div><!-- wrap ends-->
<!--代码体结束-->
    <!-- Example Modal -->
    <div id="example_modal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
        <h3 id="myModalLabel">Add user/employee</h3>
      </div>
      <div class="modal-body">
        <p>Here you can insert the user creation form</p>
      </div>
      <div class="modal-footer">
        <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
        <button class="btn btn-primary">Save changes</button>
      </div>
    </div>  

    <script type="text/javascript" src="/study/Public/assets/js/jquery.min.js"></script>
    <script type="text/javascript" src="/study/Public/assets/js/jquery-ui.min.js"></script>
    <script type="text/javascript" src="/study/Public/assets/js/raphael-min.js"></script>
    <script type="text/javascript" src="/study/Public/assets/js/bootstrap.js"></script>
    <script type="text/javascript" src='/study/Public/assets/js/sparkline.js'></script>
    <script type="text/javascript" src='/study/Public/assets/js/morris.min.js'></script>
    <script type="text/javascript" src="/study/Public/assets/js/jquery.dataTables.min.js"></script>   
    <script type="text/javascript" src="/study/Public/assets/js/jquery.masonry.min.js"></script>   
    <script type="text/javascript" src="/study/Public/assets/js/jquery.imagesloaded.min.js"></script>   
    <script type="text/javascript" src="/study/Public/assets/js/jquery.facybox.js"></script>   
    <script type="text/javascript" src="/study/Public/assets/js/jquery.alertify.min.js"></script> 
    <script type="text/javascript" src="/study/Public/assets/js/jquery.knob.js"></script>
    <script type='text/javascript' src='/study/Public/assets/js/fullcalendar.min.js'></script>
    <script type='text/javascript' src='/study/Public/assets/js/jquery.gritter.min.js'></script>
    <script type="text/javascript" src="/study/Public/assets/js/realm.js"></script>
  </body>
</html>